Skip to content

Replica exchange Hamiltonian swaps as bias#90

Merged
pdobbelaere merged 8 commits intomolmod:mainfrom
pdobbelaere:replica-exchange
Jun 30, 2025
Merged

Replica exchange Hamiltonian swaps as bias#90
pdobbelaere merged 8 commits intomolmod:mainfrom
pdobbelaere:replica-exchange

Conversation

@pdobbelaere
Copy link
Collaborator

@pdobbelaere pdobbelaere commented Jun 26, 2025

In i-Pi REX, force components under the <forces> tag are not swapped between replicas. Only force components under the <bias> tag can be exchanged (along with ensemble variables).

Here, we check the Hamiltonian of every replica, listing shared components (e.g., MACEHamiltonian) under <forces> and specific components (e.g., umbrella PlumedHamiltonian) under <bias>.

fixes #87

@pdobbelaere pdobbelaere merged commit 7147d82 into molmod:main Jun 30, 2025
1 check passed
@pdobbelaere pdobbelaere deleted the replica-exchange branch July 15, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replica exchange between hamiltonians does not swap them

1 participant